header {
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.category-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-label {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
}

select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
    font-size: 16px;
}

.site-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.site-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.site-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.site-icon i {
    font-size: 32px;
    color: #2c3e50;
}

.site-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.site-info p {
    color: #666;
    font-size: 0.9em;
}

.site-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
}

.favorite-btn,
.visit-btn {
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-btn {
    background-color: #f5d0007e;
    color: #e74c3c;
}

.favorite-btn:hover {
    color: #c0392b;
}

.visit-btn {
    background: #3498db;
    color: white;
    text-decoration: none;
}

.visit-btn:hover {
    background: #2980b9;
}

@media (max-width: 768px) {
    .site-cards {
        grid-template-columns: 1fr;
    }

    #app {
        padding: 10px;
    }
}

/* 分类选择器样式 */
.category-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.category-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    min-width: 120px;
}

.category-selector select:focus {
    outline: none;
    border-color: #2196F3;
}

.category-selector .nav-button {
    margin: 0;
}


.category-right {
    width: 100%;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

/*. 搜索栏右侧数据数量样式 */
.category-right>p>span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .category-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-selector select {
        width: 100%;
    }

    .category-right {
        width: 100%;
    }
}